<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/framework/web/common_web.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录</title>
<script>
			$(document).ready(function(){
				$("#admin").hide();
			});

			function showTab(stab,htab){
				$("#"+stab).show();
				$("#"+htab).hide();
			}
		</script>
	</head>
	<body>
		<table width="60%" align="center">
			<tr>
				<td colspan="2">
					<img src="<%=request.getContextPath()%>/framework/images/logo_new.jpg"/>|<span style="font-size: 20px">用户登录</span>
					<hr>
			</tr>
			<tr valign="top">
				<td width="400px">
					<img src="<%=request.getContextPath()%>/framework/advImgs/login_adv.jpg"/>
				</td>
				<td>
					<table width="100%" height="450px" align="center">
						<tr valign="top" height="25px">
							<th class="green"><div onclick="showTab('user','admin')">用户</div></th>
							<th class="yellow"><div onclick="showTab('admin','user')">旅行社</div></th>
						</tr>
						<tr valign="top">
							<td colspan="2">
								<div id="user">
									<form action="userLogin.action" method="post">
										<table align="center" width="100%" height="250px" style="border-right: 1px solid #4AAE00;border-left: 1px solid #4AAE00;border-bottom: 1px solid #4AAE00;border-top: 1px solid #4AAE00;">
											<tr>
												<td>用户名：<input type="text" name="user.userName"></td>
											</tr>
											<tr>
												<td>密&nbsp;&nbsp;码：<input type="password" name="user.userPwd"></td>
											</tr>
											<tr>
												<td rowspan="8">
													<input type="submit" value="登录">
												</td>
											</tr>
										</table>
									</form>
								</div>
								<div id="admin">
									<form action="adminLogin.action" method="post">
										<table align="center" width="100%" height="250px" style="border-right: 1px solid #FF8C00;border-left: 1px solid #FF8C00;border-bottom: 1px solid #FF8C00;border-top: 1px solid #FF8C00;">
											<tr>
												<td>用户名：<input type="text" name="admin.adminName"></td>
											</tr>
											<tr>
												<td>密&nbsp;&nbsp;码：<input type="password" name="admin.adminPwd"></td>
											</tr>
											<tr>
												<td rowspan="8">
													<input type="submit" value="登录">
												</td>
											</tr>
										</table>
									</form>
								</div>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<%@ include file="/website/bottom.jsp" %>
	</body>
</html>